using UnityEngine;

namespace GoogleMobileAds.Mediation.UnityAds.Android
{
    // [Assembly-CSharp.dll].GoogleMobileAds.Mediation.UnityAds.Android.UnityAdsClient
    public class UnityAdsClient : IUnityAdsClient
    {
        // Fields
        private const string UNITY_PLAYER_CLASS_NAME = "com.unity3d.player.UnityPlayer";
        private const string UNITY_ADS_METADATA_CLASS_NAME = "com.unity3d.ads.metadata.MetaData";
        private static GoogleMobileAds.Mediation.UnityAds.Android.UnityAdsClient instance;
        
        // Properties
        public static GoogleMobileAds.Mediation.UnityAds.Android.UnityAdsClient Instance { get; }
        
        // Methods
        private UnityAdsClient()
        {
        
        }
        public static GoogleMobileAds.Mediation.UnityAds.Android.UnityAdsClient get_Instance()
        {
            if(mem[536895329] != 0)
            {
                    return (GoogleMobileAds.Mediation.UnityAds.Android.UnityAdsClient)mem[536895289];
            }
            
            536895105 = 536895105;
            return (GoogleMobileAds.Mediation.UnityAds.Android.UnityAdsClient)mem[536895289];
        }
        public void SetConsentMetaData(string key, bool metaDataValue)
        {
            536882247 = new UnityEngine.AndroidJavaClass(className:  -1610599681);
            if(mem[536881369] == 0)
            {
                    throw new ArrayTypeMismatchException();
            }
            
            mem[536881377] = val_1.GetStatic<System.Object>(fieldName:  -1610599421);
            536882257 = new UnityEngine.AndroidJavaObject(className:  -1610599693, args:  536881345);
            if(mem[536881369] == 0)
            {
                    throw new ArrayTypeMismatchException();
            }
            
            mem[536881377] = key;
            bool val_4 = metaDataValue;
            if(mem[536881369] <= 1)
            {
                    throw new ArrayTypeMismatchException();
            }
            
            mem[536881385] = 536883173;
            if(((val_3.Call<System.Boolean>(methodName:  -1610596299, args:  536881345)) & 1) != 0)
            {
                    val_3.Call(methodName:  -1610599677, args:  mem[3221276963] + 184);
                return;
            }
            
            UnityEngine.MonoBehaviour.print(message:  -1610601055);
        }
        private static UnityAdsClient()
        {
            object val_1 = 536895105;
            val_1 = new System.Object();
            mem2[0] = val_1;
            throw new NullReferenceException();
        }
    
    }

}
